//
//  NSValueTest.m
//  iOS Sample Code
//
//  Created by lei yu on 11-12-8.
//  Copyright (c) 2011年 lancet. All rights reserved.
//

#import "NSValueTest.h"

@implementation NSValueTest

// All code under test must be linked into the Unit Test bundle
-(void)testNSValue{
    
    CGPoint point ={.x=100.0f,.y=200.0f};
    
    NSValue *pointObj = nil;
    pointObj=[NSValue valueWithCGPoint:point];
    
    NSArray *array = [NSArray arrayWithObject:pointObj];
    
    for(NSValue *value in array){
        
        CGPoint p=[value CGPointValue];
         NSLog(@"%.2f,%.2f",p.x,p.y);
    }
    

    
    
    
}

@end
